//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#if !defined(__LIBPUB_H__)
#define __LIBPUB_H__

#ifdef  __cplusplus
extern "C" {
#endif


//#include <stdio.h>
//#include <stdlib.h>
//#include <string.h>
#include <elatypes.h>
#include <stdarg.h>

#define sprintf _sprintf
#define vsprintf _vsprintf

int         __cdecl     sprintf(char *, const char *, ...);
int         __cdecl     vsprintf(char *, const char *, va_list);

/* Compiler intrinsics */
int         __cdecl memcmp(const void *, const void *, size_t);
void *      __cdecl memcpy(void *, const void *, size_t);
void *      __cdecl memset(void *, int, size_t);
char *      __cdecl strcat(char *, const char *);
char *      __cdecl strcpy(char *, const char *);
size_t      __cdecl strlen(const char *);
int         __cdecl strcmp(const char *, const char *);
char *      __cdecl strstr(const char *, const char *);

char *      __cdecl strncat(char *, const char *, size_t);
char *      __cdecl strncpy(char *, const char *, size_t);
int         __cdecl strncmp(const char *, const char *, size_t);
int         __cdecl _strnicmp(const char *, const char *, size_t);
int         __cdecl _stricmp(const char *, const char *);

#include <bo_config.h>
#include <bo_utils.h>

#ifdef  __cplusplus
}
#endif

#endif // __LIBPUB_H__
